package igou.togogo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ShowIndex {

    /*显示首页*/
    @RequestMapping("/showindex")
    public String showIndex(){
        System.out.println("index");
        return "index";
    }

    /*通过通用模版 用来显示页面*/
    @RequestMapping("/{itemAction}")
    public String showPages(@PathVariable String itemAction){
        return itemAction;
    }
}
